package com.hxexp.weixin.test;

import java.util.Properties;

import org.junit.Assert;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;

import com.hxexp.weixin.common.config.ConfigFileUtils;
import com.hxexp.weixin.test.runner.JUnit4WithLogClassRunner;

/**
 * 配置文件工具类测试
 *
 * @author li.jiang
 *
 */
@RunWith(JUnit4WithLogClassRunner.class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class ConfigFileUtilsTester {
    @Test
    public void testCase01() {
        Properties p = ConfigFileUtils.getProperties("conf/log4jtest.properties");
        System.out.println(p.getProperty("log4j.rootLogger"));
        Assert.assertEquals("debug,stdout", p.getProperty("log4j.rootLogger"));
    }
}
